<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>小米浮动案例</title>
    <style>
        .box {
            width: 1200px;
            height: 460px;
            margin: 0 auto;
            background-color: pink;
        }
        
        .left {
            float: left;
            width: 230px;
            height: 460px;
            background-color: powderblue;
        }
        
        .right {
            float: left;
            width: 970px;
            height: 460px;
            background-color: sandybrown;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="left"></div>
        <div class="right"></div>
    </div>
</body>

</html>